#ifndef POSIX_IO_H
#define POSIX_IO_H

#define _FILE_OFFSET_BITS 64

#include <string>
#include <vector>

#include "filenode.h"

/* buffer read */
static const size_t BLOCK_SIZE = 1048576;

/*
 * pass directory:
 * path - path to directory
 * nodes - list files
 * size - total size files
 */
void recurs_dir(std::string &path, std::vector<filenode> &nodes, long long int &size);

/* calculation sha-512 hash */
void calc_hash(std::string &path, unsigned char *hash);

#endif // POSIX_IO_H
